[BITS 16]
[CPU 286]

global _print_big
global _print_big_in_buf
extern __print_str

%ifndef BCC
[SEGMENT _TEXT class=CODE]
%else
[SECTION .text]
%endif

;*******************************************************************************
;**  Afficher une chaine de caractères de petite taille (fonction C)          **
;*******************************************************************************
_print_big:
  mov bx,sp
  mov ax,[ss:bx+6]
push bp
  mov bp,ax
  mov dx,[ss:bx+2]
  mov cx,[ss:bx+4]
  mov bx,dx

  mov dx, 0x1A20
  mov es, dx
  xor di,di

  ;Largeur du buffer
  mov ax,16

  mov si,font_big

  call __print_str

pop bp
ret

; void print_small_in_buf(unsigned short x, unsigned short y, const char* str,
;             unsigned short buf_seg, void* buff, unsigned short buf_width)
_print_big_in_buf:
  mov bx,sp
  mov ax,[ss:bx+6]
push bp
  mov bp,ax
  mov dx,[ss:bx+2]
  mov cx,[ss:bx+4]
  mov ax,[ss:bx+10]
  mov es, ax
  mov di,[ss:bx+8]
  mov ax,[ss:bx+12]
  mov bx,dx

  mov si,font_big

  call __print_str

pop bp
ret

%include "font/big.asm"

